<div class="navbar navbar-inverse navbar-fixed-top" style="box-shadow: 0px 0px 5px #000000;">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-material-light-blue-collapse">
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
        <span class="icon-bar"></span>
      </button>
            <a class="navbar-brand" href="javascript:void(0)">橘子洲</a>
        </div>
        <div class="navbar-collapse collapse navbar-material-light-blue-collapse">
            <ul class="nav navbar-nav">
                <li {% if url_for( 'main.index') is current_link %}class="active" {% endif %}>
                    <a href="{{ url_for('main.index') }}">主页</a>
                </li>
                {% if current_user.is_authenticated %}
                <li {% if url_for( 'main.blog') is current_link %}class="active" {% endif %}>
                    <a href="{{ url_for('main.blog') }}">写博客</a>
                </li>

                <li {% if url_for( 'main.user',username=current_user.username) is current_link %}class="active" {% endif %}>
                    <a href="{{ url_for('main.user',username=current_user.username) }}">个人资料</a>
                </li>
                {% endif %}
            </ul>
{#            <form class="navbar-form navbar-left">#}
{#                <div class="form-group">#}
{#                    <input type="text" class="form-control col-sm-8" placeholder="搜索功能（未上线）">#}
{#                </div>#}
{#            </form>#}
            <ul class="nav navbar-nav navbar-right">
{#                <li class="dropdown">#}
                <li class="">
{#                    <a href="index.html" data-target="#" class="dropdown-toggle" data-toggle="dropdown">#}
{#                        #}
{#                        {% if current_user.is_authenticated %}#}
{#                        {{ current_user.username }}#}
{#                        #}
{#                        {% else %}#}
{#                        账户#}
{#                        {% endif %}#}
{#                        <b class="caret"></b>#}
{#                    </a>#}
{#                    <ul class="dropdown-menu">#}
{#                    <ul class="">#}
                        {% if current_user.is_authenticated %}
                        <li><a href="{{ url_for('auth.logout') }}">注销</a></li>
                        {% else %}
                        <li><a href="{{ url_for('auth.login') }}">登陆</a></li>
                        <li><a href="{{ url_for('auth.register') }}">注册</a></li>
                        {% endif %}
                        {% if current_user.can(Permission.MODERATE_COMMENTS) %}
                        <li class="divider"></li>
                        <li>
                            <a href="{{ url_for('main.moderate') }}">管理评论</a>
                        </li>
                        {% endif %}
{#                    </ul>#}
                </li>
            </ul>
        </div>
    </div>
</div>